package com.chenjj.scala.bibao

object BiBao {
  def loopThrough(number:Int)(closure:Int =>Unit): Unit ={
    for (i <- 1 to number){
      closure(i)
    }
  }


  var result = 0
  val addInt = {value:Int => result += value}


}
